/* 表单的单行容器 */
.xr-form-item {
  display: flex;
  position: relative;
  padding-left: 1rem;
  border-bottom: 1px solid #eee;
}
/* 去掉最后一行的下边框 */
.xr-form-item:last-child {
  border-bottom: none;
}

.xr-form-item > .xr-form-label {
  display: block;
  width: 3.5rem;
  font-size: 0.8rem;
  color: #666;
  height: 2rem;
  line-height: 2rem;
}
.xr-form-item > .xr-form-item-body {
  flex: 1;
}

.xr-form-item > .xr-form-item-body > .xr-input {
  width: 100%;
  height: 2rem;
  line-height: 2rem;
  font-size: 0.8rem;
  border: none;
}

.xr-form-item > .xr-form-item-body > .xr-input-reset {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  background-color: #aaa;
  line-height: 0.8rem;
  top: 50%;
  margin-top: -0.4rem;
  right: 1rem;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
}
.xr-form-item > .xr-form-item-body > .xr-input-reset::before {
  display: flex;
  justify-content: center;
}

.xr-form-item > .xr-form-item-body > .xr-input-warning {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  line-height: 0.8rem;
  top: 50%;
  margin-top: -0.4rem;
  right: 1rem;
  border-radius: 50%;
  color: red;
  font-size: 0.3rem;
  border: 1px solid red;
}

.xr-form-item > .xr-form-item-body > .xr-input-warning::before {
  display: flex;
  justify-content: center;
}

/* 单选 */
.xr-form-item > .xr-radio {
  flex: 1;
  font-size: 0.8rem;
  line-height: 2rem;
}

.xr-form-item > .xr-radio > .xr-radio-icon {
  margin-right: 0.5rem;
  color: #09bb07;
  visibility: hidden;
}

.xr-form-item > .xr-radio.checked > .xr-radio-icon {
  visibility: visible;
}

/* 隐藏的radio类型的input */
.xr-form-item > .xr-radio > .xr-radio-input {
  position: absolute;
  left: -999rem;
}

/* 多选 */
.xr-form-item > .xr-check {
  flex: 1;
  font-size: 0.8rem;
  line-height: 2rem;
}

.xr-form-item > .xr-check > .xr-check-icon {
  margin-right: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 50%;
  color: rgba(0, 0, 0, 0);
  font-size: 0.6rem;
  width: 0.8rem;
  height: 0.8rem;
  line-height: 0.8rem;
}

.xr-form-item > .xr-check.checked > .xr-check-icon {
  background: #09bb07;
  color: rgb(116, 114, 114);
  border-color: rgba(0, 0, 0, 0);
}
.xr-form-item > .xr-check.checked > .xr-check-icon::before{
  display: flex;
  color: #fff;
  justify-content: center;
}
/* 隐藏的check类型的input */
.xr-form-item > .xr-check > .xr-check-input {
  position: absolute;
  left: -999rem;
}
